import request from '@/utils/request'

// 查询协会招商留言列表
export function listMemberInvestmentMessage(query) {
  return request({
    url: '/api/MemberInvestmentMessage/list',
    method: 'get',
    params: query
  })
}

// 查询协会招商留言详细
export function getMemberInvestmentMessage(messageId) {
  return request({
    url: '/api/MemberInvestmentMessage/' + messageId,
    method: 'get'
  })
}

// 新增协会招商留言
export function addMemberInvestmentMessage(data) {
  return request({
    url: '/api/MemberInvestmentMessage/add',
    method: 'post',
    data: data
  })
}

// 修改协会招商留言
export function updateMemberInvestmentMessage(data) {
  return request({
    url: '/api/MemberInvestmentMessage/update',
    method: 'post',
    data: data
  })
}

// 删除协会招商留言
export function delMemberInvestmentMessage(messageId) {
  return request({
    url: '/api/MemberInvestmentMessage/delete/' + messageId,
    method: 'get'
  })
}
